import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/ims/order/` + url, ...arg)

/**
 * 订单Api接口管理器
 *
 * @author YouDong
 * @date  2024/09/19 14:28
 **/
export default {
	// 获取订单分页
	imsBillPage(data) {
		return request('page', data, 'get')
	},
	// 提交订单表单 edit为true时为编辑，默认为新增
	outWare(data) {
		return request('save', data)
	},
	// 获取订单详情
	imsBillDetail(data) {
		return request('detail', data, 'get')
	},
	// 获取流水号
	getBillNo(type) {
		return request('getBillNo?billType=' + type, null, 'get')
	},
	// 删除单据
	deleteById(id) {
		return request('delete', id, 'delete')
	},
}
